.root {
  display: flex;
  height: 100%;
}

.editor {
  position: relative;
  width: 65vw;
}

.output {
  background-color: black;
  color: white;
  padding: 10px;
  width: 35vw;
  overflow-y: auto;
  margin: 0;
  height: 100%;
}

.xterm {
  width: 100%;
  height: 100%;
}

@media (max-aspect-ratio: 1/1) {
  .root {
    flex-direction: column;
  }

  .editor {
    position: relative;
    width: auto;
    height: 65%;
  }

  .output {
    background-color: black;
    color: white;
    padding: 7px;
    width: auto;
    height: 35%;
    overflow-y: auto;
    margin: 0;
  }
}

.caption {
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.runBtn {
  position: absolute !important;
  right: 20px;
  bottom: 10px;
}

.output * {
  overflow-anchor: none;
}

.output :global(.error) {
  color: rgb(255, 56, 56);
}

.scrollAnchor {
  overflow-anchor: auto;
  height: 1px;
}
